package com.two.lbms.lyq.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.two.lbms.base.BaseQuery;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Their extends BaseQuery {

    /**
     * 还书id
     */
    private Integer id;

    /**
     * 图书id
     */
    private Integer bookId;

    /**
     * 读者id
     */
    private Integer readerId;

    /**
     * 归还时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime backDate;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateDate;

    /**
     * 管理员姓名
     */
    @Size(max = 30, message = "管理员姓名最大长度要小于 30")
    private String adminName;

    /**
     * 是否到期
     */
    @Size(max = 20, message = "是否到期最大长度要小于 20")
    private String isDue;

    /**
     * 图书情况
     */
    @Size(max = 255, message = "图书情况最大长度要小于 255")
    private String bookSituation;

    /**
     * 借书时长
     */
    private Integer lastTime;



    private String readername;

    private String bookname;


}
